package com.tudouji.project.harvest.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.tudouji.framework.aspectj.lang.annotation.Excel;
import com.tudouji.framework.web.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 验收单对象 acceptform
 * 
 * @author tudouji
 * @date 2021-05-12
 */
public class Acceptform extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private String guid;

    /** 验收单编号 */
    @Excel(name = "验收单编号")
    private String acptcode;

    /** 采收批次ID */
    @Excel(name = "采收批次ID")
    private String pbguid;

    /** 货运单ID */
    @Excel(name = "货运单ID")
    private String foguid;

    /** 质检单ID */
    @Excel(name = "质检单ID")
    private String qaguid;

    /** 种植户ID */
    @Excel(name = "种植户ID")
    private String puserid;

    /** 种植户姓名 */
    @Excel(name = "种植户姓名")
    private String pusername;

    /** 车牌号 */
    @Excel(name = "车牌号")
    private String carcode;

    /** 司机姓名 */
    @Excel(name = "司机姓名")
    private String drivername;

    /** 司机电话 */
    @Excel(name = "司机电话")
    private String driverphone;

    /** 货物ID */
    @Excel(name = "货物ID")
    private String productid;

    /** 货物名称 */
    @Excel(name = "货物名称")
    private String productname;

    /** 净重 */
    @Excel(name = "净重")
    private BigDecimal qty;

    /** 数量单位(吨) */
    @Excel(name = "数量单位(吨)")
    private String unit;

    /** 单价 */
    @Excel(name = "单价")
    private BigDecimal price;

    /** 金额（扣杂前金额） */
    @Excel(name = "金额", readConverterExp = "扣=杂前金额")
    private BigDecimal amount;

    /** 扣杂率 */
    @Excel(name = "扣杂率")
    private BigDecimal deductrate;

    /** 结算金额 */
    @Excel(name = "结算金额")
    private BigDecimal finalamount;

    /** 状态
1-正常 2-已入库 3-已删除 */
    @Excel(name = "状态1-正常 2-已入库 3-已删除")
    private Integer status;

    /** $column.columnComment */
    @Excel(name = "状态 1-正常 2-已入库 3-已删除")
    private BigDecimal dustdeductrate;

    /** $column.columnComment */
    @Excel(name = "状态 1-正常 2-已入库 3-已删除")
    private BigDecimal flawdeductrate;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdate;

    /** 操作人 */
    @Excel(name = "操作人")
    private String operatorid;

    /** 最后更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "最后更新时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date lastupdate;

    public void setGuid(String guid) 
    {
        this.guid = guid;
    }

    public String getGuid() 
    {
        return guid;
    }
    public void setAcptcode(String acptcode) 
    {
        this.acptcode = acptcode;
    }

    public String getAcptcode() 
    {
        return acptcode;
    }
    public void setPbguid(String pbguid) 
    {
        this.pbguid = pbguid;
    }

    public String getPbguid() 
    {
        return pbguid;
    }
    public void setFoguid(String foguid) 
    {
        this.foguid = foguid;
    }

    public String getFoguid() 
    {
        return foguid;
    }
    public void setQaguid(String qaguid) 
    {
        this.qaguid = qaguid;
    }

    public String getQaguid() 
    {
        return qaguid;
    }
    public void setPuserid(String puserid) 
    {
        this.puserid = puserid;
    }

    public String getPuserid() 
    {
        return puserid;
    }
    public void setPusername(String pusername) 
    {
        this.pusername = pusername;
    }

    public String getPusername() 
    {
        return pusername;
    }
    public void setCarcode(String carcode) 
    {
        this.carcode = carcode;
    }

    public String getCarcode() 
    {
        return carcode;
    }
    public void setDrivername(String drivername) 
    {
        this.drivername = drivername;
    }

    public String getDrivername() 
    {
        return drivername;
    }
    public void setDriverphone(String driverphone) 
    {
        this.driverphone = driverphone;
    }

    public String getDriverphone() 
    {
        return driverphone;
    }
    public void setProductid(String productid) 
    {
        this.productid = productid;
    }

    public String getProductid() 
    {
        return productid;
    }
    public void setProductname(String productname) 
    {
        this.productname = productname;
    }

    public String getProductname() 
    {
        return productname;
    }
    public void setQty(BigDecimal qty) 
    {
        this.qty = qty;
    }

    public BigDecimal getQty() 
    {
        return qty;
    }
    public void setUnit(String unit) 
    {
        this.unit = unit;
    }

    public String getUnit() 
    {
        return unit;
    }
    public void setPrice(BigDecimal price) 
    {
        this.price = price;
    }

    public BigDecimal getPrice() 
    {
        return price;
    }
    public void setAmount(BigDecimal amount) 
    {
        this.amount = amount;
    }

    public BigDecimal getAmount() 
    {
        return amount;
    }
    public void setDeductrate(BigDecimal deductrate) 
    {
        this.deductrate = deductrate;
    }

    public BigDecimal getDeductrate() 
    {
        return deductrate;
    }
    public void setFinalamount(BigDecimal finalamount) 
    {
        this.finalamount = finalamount;
    }

    public BigDecimal getFinalamount() 
    {
        return finalamount;
    }
    public void setStatus(Integer status) 
    {
        this.status = status;
    }

    public Integer getStatus() 
    {
        return status;
    }
    public void setDustdeductrate(BigDecimal dustdeductrate) 
    {
        this.dustdeductrate = dustdeductrate;
    }

    public BigDecimal getDustdeductrate() 
    {
        return dustdeductrate;
    }
    public void setFlawdeductrate(BigDecimal flawdeductrate) 
    {
        this.flawdeductrate = flawdeductrate;
    }

    public BigDecimal getFlawdeductrate() 
    {
        return flawdeductrate;
    }
    public void setCreatedate(Date createdate) 
    {
        this.createdate = createdate;
    }

    public Date getCreatedate() 
    {
        return createdate;
    }
    public void setOperatorid(String operatorid) 
    {
        this.operatorid = operatorid;
    }

    public String getOperatorid() 
    {
        return operatorid;
    }
    public void setLastupdate(Date lastupdate) 
    {
        this.lastupdate = lastupdate;
    }

    public Date getLastupdate() 
    {
        return lastupdate;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("guid", getGuid())
            .append("acptcode", getAcptcode())
            .append("pbguid", getPbguid())
            .append("foguid", getFoguid())
            .append("qaguid", getQaguid())
            .append("puserid", getPuserid())
            .append("pusername", getPusername())
            .append("carcode", getCarcode())
            .append("drivername", getDrivername())
            .append("driverphone", getDriverphone())
            .append("productid", getProductid())
            .append("productname", getProductname())
            .append("qty", getQty())
            .append("unit", getUnit())
            .append("price", getPrice())
            .append("amount", getAmount())
            .append("deductrate", getDeductrate())
            .append("finalamount", getFinalamount())
            .append("remark", getRemark())
            .append("status", getStatus())
            .append("dustdeductrate", getDustdeductrate())
            .append("flawdeductrate", getFlawdeductrate())
            .append("createdate", getCreatedate())
            .append("operatorid", getOperatorid())
            .append("lastupdate", getLastupdate())
            .toString();
    }
}
